import Vue from 'vue'
import Router from 'vue-router'

/* 何健页面路由 */
import Login from "../pages/Login"  //登录页面
import Register from "../pages/Register"  //注册页面
import Message from "../pages/index_Message" //消息列表首页
import ForgotPassword from "../pages/ForgotPassword" //忘记密码页面
import ContactUs from "../pages/ContactUs"  //联系我们页面
import SecurityCode from "../pages/securityCode"    //安全码找回页面
import NewPassword from "../pages/NewPassword"  //新密码设置页面
import ChatRoom from "../pages/ChatRoom"  //消息列表首页-聊天室页面
import ChatRecord from "../pages/ChatRecord" //聊天信息页面-搜索聊天记录页面
import ChatInfo from "../pages/ChatInfo"    //聊天室页面-个人聊天信息页面
import ChatInfoGroup from "../pages/ChatInfoGroup"    //聊天室页面-群聊天信息页面
import AddMembers from "../pages/AddMembers"  //聊天信息页面-添加成员页面
import FindChatContent from "../pages/FindChatContent"  //聊天信息页面-查找聊天内容页面
import SelectCard from "../pages/SelectCard"    //选择名片页面
import EditorsNote from "../pages/EditorsNote"  //编辑备注页面
import FindMembers from "../pages/FindMembers"  //选择名片页面-查找成员页面

/* 张华页面路由 */
import ceshi from "@/pages/ceshi.vue"  //测试页面
import index_AddressBook from "@/pages/index_AddressBook.vue"  //通讯录首页
import AddFriend from "@/pages/AddFriend.vue"  //  通讯录首页-添加好友
import GroupChat from "@/pages/GroupChat.vue"  //  通讯录首页-已保存的群聊
import NewFriend from "@/pages/NewFriend.vue"  //  通讯录首页-新朋友
import NewFriendInfo from "@/pages/NewFriendInfo.vue"  //  我的好友详情，添加好友详情，黑名单好友详情，已添加好友详情
import index_My from "@/pages/index_My.vue"  //  个人中心首页
import MyInformation from "@/pages/MyInformation.vue"  //  个人中心首页-我的个人信息
import MyHead from "@/pages/MyHead.vue"  //  个人中心首页-我的个人信息-我的头像(修改头像，查看头像)
import Nickname from "@/pages/Nickname.vue"  //  个人中心首页-我的个人信息-我的昵称
import MyPhoto from "@/pages/MyPhoto.vue"  //  个人中心首页-我的个人信息-我的相册
import Gender from "@/pages/Gender.vue"  //  个人中心首页-我的个人信息-我的性别
import Email from "@/pages/Email.vue"  //  个人中心首页-我的个人信息-我的邮箱
import MiniGames from "@/pages/MiniGames.vue"  //  个人中心首页-小游戏
import Collection from "@/pages/Collection.vue"  //  个人中心首页-收藏
import CollectionDetails from "@/pages/CollectionDetails.vue"  //  个人中心首页-收藏详情
import Install from "@/pages/Install.vue"  //  个人中心首页-设置
import Security from "@/pages/Security.vue"  //  个人中心首页-设置-安全列表(忘记登录密码(页面在ForgotPassword))
import SetSecurityCode from "@/pages/SetSecurityCode.vue"  //  个人中心首页-设置-安全列表-设置安全码
import ChangePassword from "@/pages/ChangePassword.vue"  //  个人中心首页-设置-安全列表-修改登录密码
import NewsNotification from "@/pages/NewsNotification.vue"  //  个人中心首页-设置-新消息通知
import Privacy from "@/pages/Privacy.vue"  //  个人中心首页-设置-隐私(添加我的方式，黑名单)
import AddMyWay from "@/pages/AddMyWay.vue"  //  个人中心首页-设置-隐私-添加我的方式
import Blacklist from "@/pages/Blacklist.vue"  //  个人中心首页-设置-隐私-黑名单
import General from "@/pages/General.vue"  //  个人中心首页-设置-通用
import Help from "@/pages/Help.vue"  //  个人中心首页-帮助
import HelpDetail from "@/pages/HelpDetail.vue"  //  个人中心首页-帮助

import PlatId from "@/pages/PlatId.vue"  //  个人中心首页-帮助


/* 熊搏页面内容 */
import GroupName from "@/pages/GroupName.vue" //群名称
import GroupMyName from "@/pages/GroupMyName.vue" //本群显示的昵称
import ComplaintsList from "@/pages/ComplaintsList.vue" //投诉列表
import ComplaintsSubmit from "@/pages/ComplaintsSubmit.vue" //投诉原因
import ComplaintsFeedback from "@/pages/ComplaintsFeedback.vue" //投诉反馈
import GroupAnnouncement from "@/pages/GroupAnnouncement.vue" //群公告展示
import GroupAnnouncementEditor from "@/pages/GroupAnnouncementEditor.vue" //群公告编辑
import ChatBackground from "@/pages/ChatBackground.vue"// 聊天背景设置
import PersonalDescription from "@/pages/PersonalDescription.vue" // 个人描述详情
import ModifyRemark from "@/pages/ModifyRemark.vue" //设置备注
import GroupManagement from "@/pages/GroupManagement.vue" //群管理 
import GroupAdministrator from "@/pages/GroupAdministrator.vue" //群管理-群管理员设置
import GroupInactiveMembers from "@/pages/GroupInactiveMembers.vue" //群管理-不活跃群成员管理
import GroupMemberActivity from "@/pages/GroupMemberActivity.vue" //管理-不活跃群成员管理-不活跃群成员列表
import GroupMembersBack from "@/pages/GroupMembersBack.vue" //群管理-退群成员
import GroupSilencev from "@/pages/GroupSilencev.vue" //群禁言时间选择
import SystemMessage from "@/pages/SystemMessage.vue" //系统信息
import GroupInstantMessaging from "@/pages/GroupInstantMessaging.vue" //即时聊天记录
import DateFind from "@/pages/DateFind.vue" //按时间查找聊天记录
import PicFind from "@/pages/PicFind.vue" //按图片查找
import FriendsValidation from "@/pages/FriendsValidation.vue";

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: "/",
            component: Login,
            meta:{
                wsClient:false
            }
        }, {
            path: "/register",
            component: Register,
            meta:{
                wsClient:false
            }
        }, {
            path: "/message",
            component: Message,
            meta: {
                keepAlive: true
            }
        }, {
            path: '/index_AddressBook',
            component: index_AddressBook,
            meta:{
                keepAlive:true
            }
        }, {
            path: '/AddFriend',
            component: AddFriend,
        }, {
            path: '/GroupChat',
            component: GroupChat,
        }, {
            path: '/NewFriend',
            component: NewFriend,
        }, {
            path: "/message",
            component: Message,
        }, {
            path: "/forgotpassword",
            component: ForgotPassword,
            meta:{
                wsClient:false
            }
        }, {
            path: "/contactus",
            component: ContactUs,
            meta:{
                wsClient:false
            }
        }, {
            path: "/securitycode",
            component: SecurityCode,
            meta:{
                wsClient:false
            }
        }, {
            path: "/newpassword",
            component: NewPassword,
            meta:{
                wsClient:false
            }
        }, {
            path: '/NewFriendInfo',
            component: NewFriendInfo,
            name: 'NewFriendInfo',
        }, {
            path: '/index_My',
            component: index_My
        }, {
            path: '/MyInformation',
            component: MyInformation,
            name: 'MyInformation',
        }, {
            path: '/chatroom',
            component: ChatRoom,
        }, {
            path: '/chatrecord',
            component: ChatRecord,
        }, {
            path: '/Collection',
            component: Collection,
        }, {
            path: '/Install',
            component: Install,
        }, {
            path: '/Help',
            component: Help,
        }, {
            path: '/HelpDetail',
            component: HelpDetail,
        }, {
            path: '/Nickname',
            component: Nickname,
        }, {
            path: '/MyPhoto',
            component: MyPhoto,
        }, {
            path: '/Gender',
            component: Gender,
        }, {
            path: '/Email',
            component: Email,
        }, {
            path: '/PlatId',
            component: PlatId,
        }, {
            path: '/MyHead',
            component: MyHead,
            name: 'MyHead',
        }, {
            path: '/Security',
            component: Security,
            name: 'Security',
        }, {
            path: '/SetSecurityCode',
            component: SetSecurityCode,
        }, {
            path: '/ChangePassword',
            component: ChangePassword,
        }, {
            path: '/NewsNotification',
            component: NewsNotification,
        }, {
            path: '/Privacy',
            component: Privacy,
        }, {
            path: '/AddMyWay',
            component: AddMyWay,
        }, {
            path: '/Blacklist',
            component: Blacklist,
        }, {
            path: '/General',
            component: General,
        }, {
            path: '/CollectionDetails',
            component: CollectionDetails,
        }, {
            path: '/MiniGames',
            component: MiniGames,
        }, {
            path: '/ceshi',
            component: ceshi,
            meta:{
                keepAlive:true,
            }
        }, {
            path: '/chatinfo',
            component: ChatInfo,
        }, {
            path: '/addmembers',
            component: AddMembers,
        }, {
            path: '/findchatcontent',
            component: FindChatContent,
        }, {
            path: '/groupname',
            component: GroupName,
        }, {
            path: '/groupmyname',
            component: GroupMyName
        }, {
            path: '/complaintslist',
            component: ComplaintsList
        }, {
            path: '/complaintssubmit',
            component: ComplaintsSubmit
        }, {
            path: '/selectcard',
            component: SelectCard
        }, {
            path: '/editorsnote',
            component: EditorsNote
        }, {
            path: '/groupmyname',
            component: GroupMyName
        }, {
            path: '/complaintslist',
            component: ComplaintsList
        }, {
            path: '/complaintssubmit',
            component: ComplaintsSubmit
        }, {
            path: '/complaintsfeedback',
            component: ComplaintsFeedback
        }, {
            path: '/groupannouncement',
            component: GroupAnnouncement
        }, {
            path: '/groupannouncementeditor',
            component: GroupAnnouncementEditor
        }, {
            path: '/chatbackground',
            component: ChatBackground
        }, {
            path: '/personaldescription',
            component: PersonalDescription
        }, {
            path: '/modifyremark',
            component: ModifyRemark
        }, {
            path: '/groupmanagement',
            component: GroupManagement
        }, {
            path: '/findmembers',
            component: FindMembers
        }, {
            path: '/groupadministrator',
            component: GroupAdministrator
        }, {
            path: '/chatinfogroup',
            component: ChatInfoGroup
        }, {
            path: '/groupinactivemembers',
            component: GroupInactiveMembers
        }, {
            path: '/groupmemberactivity',
            component: GroupMemberActivity
        }, {
            path: '/groupmembersback',
            component: GroupMembersBack
        }, {
            path: '/groupsilencev',
            component: GroupSilencev
        },{
            path: '/systemMessage',
            component: SystemMessage
        },{
            path: '/groupinstantmessaging',
            component: GroupInstantMessaging
        },{
          path: '/datefind',
          component: DateFind
        },{
          path: '/picfind',
          component: PicFind
        },{
          path: '/friendsvalidation',
          component: FriendsValidation
        }
    
    ]
})
